package com.demo8;

/**
 * Created by Administrator on 2017/3/27.
 */
public class YiChang7 {
    public static void main(String[] args) {
        String str = null;
        int strLength = 0;
        try {
//            strLength = str.length();
//            System.out.println("出现异常语句之后");
        } catch (NullPointerException e) {
            e.printStackTrace();
        } finally {
            System.out.println("执行finally语句块");
        }
        System.out.println("程序退出");
    }
}
